<?php

class DbException extends Exception
{ }

class Db_Abstract
{
    var $res = NULL;

    public function Db_Abstract () {
    }
    public function checkConnection () {
        if (!$this->res) {
            $this->res = NULL;
            return false;
        }
        return true;
    }

    public function _ ($s) {
        return $s;
    }
    public function __ ($s) {
        return _($s);
    }


    public function connect () {
    }
    public function selectDb ($db_name) { 
    }
    public function fetchSql ($sql) {
    }
    public function execSql ($sql) {
    }
    public function execProc ($procName, $params, $fetch=False) { 
    }
    public function close () {
    }


}

